<template>
  <div class="weui-panel weui-panel_access mtp4 mycard">
    <div class="weui-panel__bd">
      <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg btnone">
        <div class="weui-media-box__bd">
          <p class="weui-media-box__desc lhp48 fullL"><span class="partB">剩余上门时间</span><span class="ordertime partS">{{otime}}</span></p>
          <h4 class="weui-media-box__title">
            <time-counter :timer="appointdate ? Math.round(Date.parse(appointdate.slice(0, 11).replace(/-/g, '/') + appointbtime) / 1000) : Math.round((new Date()).getTime() / 1000)" :color="'black'" :fsize="'17px'" :tagpos="'right'"></time-counter>
          </h4>
        </div>
      </a>
    </div>
  </div>
</template>

<script>
import TimeCounter from '@/components/timecounter'
export default {
  name: 'OdArrive',
  props: ['appointdate', 'appointbtime', 'appointetime', 'otime'],
  data () {
    return {}
  },
  components: {
    TimeCounter
  }
}
</script>

<style lang="stylus" scoped>
</style>
